package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-18
 * Time: 12:16
 */
public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println(this.name + " 正在吃狗粮!");
    }
    public void wangWang(){
        System.out.println(name + "正在汪汪叫!");
    }
}
